package ${nowScriptPackage};

import com.df.script.IScript;
import ${nowMsgPackage};
import io.netty.channel.Channel;


public class ${nowMsgDefinition.name}Script implements IScript {


    private  final Integer scriptId = ${nowMsgDefinition.msgId?c};


    @Override
    public void excute(Object... args) {
        handleMsg((Channel) args[0], (${nowMsgDefinition.java_outer_classname}.${nowMsgDefinition.name}) args[1]);
    }

    @Override
    public Integer getScriptId() {
        return scriptId;
    }

    private void handleMsg(Channel channel, ${nowMsgDefinition.java_outer_classname}.${nowMsgDefinition.name} msg) {
    }

}
